package com.fenghen.demo03.controller;


import com.fenghen.demo03.entity.User;
import com.fenghen.demo03.util.EncryptionUtil;

public class TestController {
    public static void main(String[] args) {
        User user = new User();
        user.setPassword("123456");

        String encrypt = EncryptionUtil.encrypt(user.getPassword());
        System.out.println("加密后"+encrypt);

        String decrypt = EncryptionUtil.decrypt(encrypt);
        System.out.println("解密后"+decrypt);

    }


}
